import config from "../../../config/index.js";
import http from "../../../utils/request.js";

export default {
    addTemplate: {
        url: `${config.API_URL}/platform/tool/template/add`,
        name: "新增模板",
        post: function (platformTemplateAddVo) {
            return http.post(this.url, platformTemplateAddVo);
        }
    },
    delTemplate: {
        url: `${config.API_URL}/platform/tool/template/del`,
        name: "多选级联删除模板",
        delete: function (templateIdList) {
            return http.delete(this.url, templateIdList);
        }
    },
    editTemplate: {
        url: `${config.API_URL}/platform/tool/template/edit`,
        name: "修改模板信息",
        put: function (platformTemplateEditVo) {
            return http.put(this.url, platformTemplateEditVo);
        }
    },
    getTemplateById: {
        url: `${config.API_URL}/platform/tool/template/info`,
        name: "根据ID获取模板详情",
        get: function (templateId) {
            return http.get(this.url + "/" + templateId);
        }
    },
    pageListTemplate: {
        url: `${config.API_URL}/platform/tool/template/pageList`,
        name: "分页查询模板列表",
        get: function (platformTemplateQueryVo) {
            return http.get(this.url, platformTemplateQueryVo);
        }
    }
}
